package com.net;

/*ClientException主要是指客户端的异常*/
public final class ClientException extends Exception
{

	private static final long serialVersionUID = 1L;
	/**
	 * 错误代码
	 */
	public int code;
	
	public ClientException(final int code)
	{
		super("数据获取失败");
		this.code = code;
	}
	public ClientException(final String msg, final int code)
	{
		super(msg);
		this.code = code;
	}
	
	public ClientException(Exception e)
	{
		super(e);
	}
	
	public int getErrorCode()
	{
		return this.code;
	}
	
}
